texture: Make the texture id a guint
authorBenjamin Otte <otte@redhat.com>
Fri, 2 Feb 2018 13:58:12 +0000 (14:58 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 2 Feb 2018 13:59:23 +0000 (14:59 +0100)
Texture IDs are unsigned, so treat them like that.

gdk/gdktexture.c
gdk/gdktexture.h
gdk/gdktextureprivate.h

index aefb82c67735bd14a271f695690d03bbba9f4636..69721caa78beb08e1d54f8f18437a52015e6216b 100644 (file)
@@ -441,7 +441,7 @@ struct _GdkGLTexture {
   GdkTexture parent_instance;
 
   GdkGLContext *context;
-  int id;
+  guint id;
 
   cairo_surface_t *saved;
 
@@ -535,7 +535,7 @@ gdk_gl_texture_get_context (GdkGLTexture *self)
   return self->context;
 }
 
-int
+guint
 gdk_gl_texture_get_id (GdkGLTexture *self)
 {
   return self->id;
@@ -711,7 +711,7 @@ gdk_texture_new_from_file (GFile   *file,
  **/
 GdkTexture *
 gdk_texture_new_for_gl (GdkGLContext   *context,
-                        int             id,
+                        guint           id,
                         int             width,
                         int             height,
                         GDestroyNotify  destroy,
index ae7ac812f2799f67e628f89881c21c9ff5b601d2..c35820c7b5f6fe2e074ecabd6e69c02cf2a119cb 100644 (file)
@@ -58,7 +58,7 @@ GdkTexture *            gdk_texture_new_from_file              (GFile
 
 GDK_AVAILABLE_IN_3_94
 GdkTexture *            gdk_texture_new_for_gl                 (GdkGLContext    *context,
-                                                                int              id,
+                                                                guint            id,
                                                                 int              width,
                                                                 int              height,
                                                                 GDestroyNotify   destroy,
index 6aa96d16c30e5ac0180a700057102ebd3194e24c..c6cab7801deea05b3e49eee0343b3444acbe8dac 100644 (file)
@@ -49,7 +49,7 @@ gpointer                gdk_texture_get_render_data     (GdkTexture
 G_DECLARE_FINAL_TYPE (GdkGLTexture, gdk_gl_texture, GDK, GL_TEXTURE, GdkTexture)
 
 GdkGLContext *          gdk_gl_texture_get_context      (GdkGLTexture           *self);
-int                     gdk_gl_texture_get_id           (GdkGLTexture           *self);
+guint                   gdk_gl_texture_get_id           (GdkGLTexture           *self);
 
 G_END_DECLS